//
//  XJShopListItem.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/15.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJShopListItem.h"

#import "XJShopListModel.h"

@interface XJShopListItem()
@property (weak, nonatomic) IBOutlet UIImageView *shopIv;
@property (weak, nonatomic) IBOutlet UILabel *shopNameLb;

@end

@implementation XJShopListItem

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}

- (void)setModel:(XJShopListModel *)model {
    UIImage *placeholdImg = [UIImage imageNamed:@"default_goods"];
    
    [self.shopIv sd_setImageWithURL:[NSURL URLWithString:model.avatar] placeholderImage:placeholdImg];

    
    self.shopNameLb.text = model.name;
}

@end
